\setuppapersize[A7,landscape]

\definehead[mychapter][chapter][page=no]
\definelist[mylist][
alternative=a,
color=blue,
headnumber=always,   %% 如果要在目录中显示章节号，一定要设置为always,最后的逗号一定也要有,避免特殊情况下lmtx处理异常
],

\definecombinedlist[Mycontent]
\setupcombinedlist[Mycontent] [alternative=c,
list={mychapter,section,mylist}]

\setupheadtext[Mycontent={TABLE of CONTENTS}]
\starttext{

\startmychapter[title=Foo Chapter1]{
  \startsection[title={Beta}]  First Section
  \stopsection
  \startsection[title={Alpha}] Second Section
  \stopsection
}
\stopmychapter
\writetolist[mylist]{NO.1}{ manual defined mylist ---1}
\startmychapter[title=Foo Chapter2]{
  \startsection[title={Beta}]  First Section
  \stopsection
  \startsection[title={Alpha}] Second Section
  \stopsection
}
\stopmychapter

\title[title=TOC]{
\placeMycontent[criterium=all]
}
\page

\completeMycontent[criterium=all,alternative=b]
}
\stoptext
